package cn.hill4j.tool.spring.ext.alias;


import org.springframework.stereotype.Component;

import java.lang.annotation.*;
/**
  * ClassName: Alias
  * Description: spring扩展别名定义注解
  * @author hillchen
  * Date 2023/8/8
  * @version: 1.0
  */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(Aliases.class)
@Component
public @interface Alias {
    /**
     * @author hillchen
     * Description: 定义spring bean扩展别名
     * Date 2023/8/8 22:53
     * @return String[]
     **/
    String[] value() default {};
    /**
     * @author hillchen
     * Description: 定义spring bean扩展别名分组名：默认def
     * Date 2023/8/8 22:53
     * @return String
     **/
    String groupName() default BeansAliasUtils.DEF_GROUP_NAME;
}
